// 将数据存储在本地，避免刷新后数据消失
function setStorage(data) {
    // const {
    //     totalCount,
    //     totalPrice,
    //     selectedFood
    // } = data;
    localStorage.setItem('totalCount', totalCount);
    localStorage.setItem('totalPrice', totalPrice);
    localStorage.setItem('selectedFood', selectedFood);
}

export {
    setStorage
}